<template>
  <div>
    <div class="head">
      <a @click="$router.back(-1)" class="return"></a>
      {{$t('ParticipationInstructions.v1')}}
    </div>
    <div class="overlay">
      <div class="overlay-content scrolling" style="color: black;">
        <div class="jsImg">
          <div style="background: white;padding: 10px;margin-top: 10px;">{{$t('ParticipationInstructions.v2')}}</div>
          <div style="background: white;padding: 10px;border-top: 1px solid rgba(125, 126, 128,0.1);" v-html="list.join">
            内容
          </div>
          <div style="background: white;padding: 10px;margin-top: 10px;">{{$t('ParticipationInstructions.v3')}}</div>
          <div style="background: white;padding: 10px;border-top: 1px solid rgba(125, 126, 128,0.1);" v-html="list.rule">
            内容
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
    import {crowdfunding} from './../../utils/api';

    export default {
        name: "ParticipationInstructions",
        data() {
            return {
                list: []
            }
        },
        mounted() {
            this.getList();
        },
        methods: {
            getList() {
                crowdfunding.getExplain({
                    projectId: this.$route.query.projectId
                }).then(res => {
                    if (res.code == 200) {
                        this.list = res.data;
                    }
                })
            }
        }
    }
</script>

<style lang="less" scoped>
  .overlay {
    background: rgb(245, 245, 245);
  }

  .head {
    background: white;
    color: black;
  }

  .head .return:after {
    border-color: black;
  }

  /deep/ .jsImg img {
    width: 100%;
    height: 100%;
  }
</style>
